package com.example.cdctestsystem.pojo;

import java.io.Serializable;
import java.util.Date;

public class Question implements Serializable {
    private Integer id;

    /**
	* 题目
	*/
    private String subject;

    /**
	* 1为使用，0为删除
	*/
    private Boolean enable;

    /**
	* 题目类别表
	*/
    private Category category;

    /**
	* 题目类型表
	*/
    private QuestionType questionType;

    /**
	* 问题解析
	*/
    private String explain;

    /**
	* 添加问题管理员id
	*/
    private Admin admin;

    /**
	* 添加时间
	*/
    private Date addTime;

    /**
	* 该题错误次数
	*/
    private Integer falseCount;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }


    public String getExplain() {
        return explain;
    }

    public void setExplain(String explain) {
        this.explain = explain;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Integer getFalseCount() {
        return falseCount;
    }

    public void setFalseCount(Integer falseCount) {
        this.falseCount = falseCount;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public QuestionType getQuestionType() {
        return questionType;
    }

    public void setQuestionType(QuestionType questionType) {
        this.questionType = questionType;
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", subject=").append(subject);
        sb.append(", enable=").append(enable);
        sb.append(", categoryId=").append(category);
        sb.append(", questionTypeId=").append(questionType);
        sb.append(", explain=").append(explain);
        sb.append(", adminId=").append(admin);
        sb.append(", addTime=").append(addTime);
        sb.append(", falseCount=").append(falseCount);
        sb.append("]");
        return sb.toString();
    }
}